package com.hx.haowumall.haowumallcart.feign;

import com.hx.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

@FeignClient("haowumall-product")
public interface ProductFeignService {

    @RequestMapping("/haowumallproduct/skuinfo/info/{skuId}")
    //@RequiresPermissions("haowumallproduct:skuinfo:info")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/haowumallproduct/skusaleattrvalue/stringlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @GetMapping("/haowumallproduct/skuinfo/{skuId}/price")
    R getPrice(@PathVariable("skuId") Long skuId);
}
